package com.ibeeking.found.msg.api.feign;

import com.ibeeking.found.msg.api.feign.fallback.MsgMemberCFallbackFactory;
import com.ibeeking.nematos.utils.result.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Author ibeeking
 */
@FeignClient(name = "mall-member-c-server", path = "/c", contextId = "msgMemberCClient", fallbackFactory = MsgMemberCFallbackFactory.class, decode404 = true)
public interface MsgMemberCClient {

    /**
     * 通过会员id查询unionIds
     *
     * @param memberIds
     * @return
     */
    @PostMapping(value = "/member/feign/v1/queryUnionIds")
    ResponseResult<List<String>> queryUnionIds(@RequestBody List<Long> memberIds);

    /**
     * 根据会员ids查询会员手机号
     *
     * @param memberIds
     * @return
     */
    @PostMapping(value = "/member/feign/v1/queryMobiles")
    ResponseResult<List<String>> queryMobiles(@RequestBody List<Long> memberIds);
}
